package spring.yongongsystem.service;

import spring.yongongsystem.POJO.dto.ProductPageQueryDTO;
import spring.yongongsystem.POJO.entity.Product;
import spring.yongongsystem.result.PageResult;

public interface ProductService {
    /**
     * 新增产品
     * @param product
     */
    void save(Product product);

    void update(Product product);

    void deleteById(Long id);

    /**
     * 产品分页查询
     * @param productPageQueryDTO
     * @return
     */
    PageResult pageQuery(ProductPageQueryDTO productPageQueryDTO);
}
